package com.heatup.apt.api.controller.order.ordertype.factory;

import org.springframework.stereotype.Component;

import com.heatup.apt.api.controller.order.OrderVo;
import com.heatup.apt.api.controller.order.ordertype.OrderTypeAbstractFactory;

@Component
public class TeamOrderService extends OrderTypeAbstractFactory {

	public TeamOrderService(){
		super();
	}
	
	@Override
	public OrderVo makeOrder(OrderVo orderVo) {
		super.makeOrder(orderVo);
		System.out.println("团课特殊验证参数");
		super.payTypeAbstractFactory.pay(orderVo);
		return null;
	}
	
	@Override
	public Boolean dealParam(OrderVo orderVo) {
		super.dealParam(orderVo);
		System.out.println("团课特殊验证参数");
		return null;
	}

	public boolean updateStatus(OrderVo orderVo) {
		System.out.println("更新订单状态");
		return false;
	}
	
	public static void main(String[] args) {
		OrderTypeAbstractFactory or = new TeamOrderService();
		or.makeOrder(new OrderVo());
	}

}
